package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    int insert(NursingProject nursingProject);

    int update(NursingProject nursingProject);

    int deleteById(@Param("id") Long id);

    NursingProject findById(@Param("id") Long id);

    List<NursingProject> findAll();

    Page<NursingProject> selectPage(String name,Integer status );

    //根据id设置对应的状态1为启动0为禁用
    void status(Long id, Integer status);
}